package com.asset.entity;

import java.util.Date;
import java.util.List;

/**
 * 购置表
 *
 */
public class Purchase {
    //购置编号
    private String number;
    //后置批次
    private Integer batch;
    //总数量
    private Integer total;
    //资产类型
    private Integer assetType;
    //资产名字
    private String assetName;
    //购置申请发起人id
    private Integer initiator;
    //购置总金额
    private Double amount;
    //发起申请时间
    private Date startTime;
    //审批通过时间
    private Date approvalTime;
    //审批流程
    private String approvalProcess;
    //购置说明（备注信息）
    private String memo;

    //商品信息表
    private List<Product> productList;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getBatch() {
        return batch;
    }

    public void setBatch(Integer batch) {
        this.batch = batch;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getAssetType() {
        return assetType;
    }

    public void setAssetType(Integer assetType) {
        this.assetType = assetType;
    }

    public String getAssetName() {
        return assetName;
    }

    public void setAssetName(String assetName) {
        this.assetName = assetName;
    }

    public Integer getInitiator() {
        return initiator;
    }

    public void setInitiator(Integer initiator) {
        this.initiator = initiator;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(Date approvalTime) {
        this.approvalTime = approvalTime;
    }

    public String getApprovalProcess() {
        return approvalProcess;
    }

    public void setApprovalProcess(String approvalProcess) {
        this.approvalProcess = approvalProcess;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    @Override
    public String toString() {
        return "Purchase{" +
                "number='" + number + '\'' +
                ", batch=" + batch +
                ", total=" + total +
                ", assetType=" + assetType +
                ", assetName='" + assetName + '\'' +
                ", initiator=" + initiator +
                ", amount=" + amount +
                ", startTime=" + startTime +
                ", approvalTime=" + approvalTime +
                ", approvalProcess='" + approvalProcess + '\'' +
                ", memo='" + memo + '\'' +
                ", productList=" + productList +
                '}';
    }

    public Purchase() {
    }

    public Purchase(String number, Integer batch, Integer total, Integer assetType, String assetName, Integer initiator, Double amount, Date startTime, Date approvalTime, String approvalProcess, String memo, List<Product> productList) {
        this.number = number;
        this.batch = batch;
        this.total = total;
        this.assetType = assetType;
        this.assetName = assetName;
        this.initiator = initiator;
        this.amount = amount;
        this.startTime = startTime;
        this.approvalTime = approvalTime;
        this.approvalProcess = approvalProcess;
        this.memo = memo;
        this.productList = productList;
    }
}
